<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    * {
      margin: 0;
      padding: 0;
    }
		html{
			padding: 20px;
		}
    iframe {
      border: 1px solid #333;
      width: 100%;
			padding: 20px;
      height: 400px;
      margin: 0 auto;
      display: block;
    }
  </style>
</head>

<body>
  <p>非webpack项目额外声明script用于导出生命周期钩子函数，供主应用调用</p>
	<hr>
  <p>iframe嵌套主应用main-project，演示为什么不用iframe取代微前端：iframe子页面切换路由刷新浏览器路由丢失</p>
  <iframe src="http://localhost:8100/" frameborder="0"></iframe>
</body>
<script src="http://code.jquery.com/jquery-2.1.1.min.js"></script>
<script src="./entry.js" entry></script>
<script>

</script>

</html>